package org.ruoyi.interview.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus;
import org.ruoyi.interview.domain.InterviewQuestionMastered;
import org.ruoyi.interview.domain.vo.InterviewQuestionMasteredCategoryVo;
import org.ruoyi.interview.domain.vo.InterviewQuestionMasteredVo;
import org.ruoyi.interview.domain.bo.InterviewQuestionMasteredBo;
import org.ruoyi.interview.domain.vo.InterviewQuestionFavoriteCategoryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

/**
 * 面试题掌握Mapper接口
 *
 * @author ruoyi
 */
@Mapper
public interface InterviewQuestionMasteredMapper extends BaseMapperPlus<InterviewQuestionMastered, InterviewQuestionMasteredVo> {

    /**
     * 分页查询掌握题目列表
     * @param page 分页参数
     * @param bo 查询条件
     * @return 掌握题目列表
     */
    IPage<InterviewQuestionMasteredVo> selectMasteredQuestionVoPage(IPage<InterviewQuestionMasteredVo> page, @Param("bo") InterviewQuestionMasteredBo bo);

    /**
     * 分页查询掌握题目列表及题目详情
     * @param page 分页参数
     * @param bo 查询条件
     * @return 掌握题目列表及题目详情
     */
    IPage<InterviewQuestionMasteredCategoryVo> selectMasteredQuestionWithDetailPage(IPage<InterviewQuestionMasteredCategoryVo> page, @Param("bo") InterviewQuestionMasteredBo bo);
}
